import java.util.ArrayList;

class MethodInfo extends NodeInfo {
	private ArrayList<EntityBlock> methodParams;
	private Node	retAst;
	private ArrayList<Node> stmtAst;
	
	MethodInfo() {
		this.retAst			= null;
		this.stmtAst		= new ArrayList<Node>();
		this.methodParams	= new ArrayList<EntityBlock>();
	}

	public void setRetAst(Node ast) {
		this.retAst			= ast;
	}

	public void addStmtAst(Node ast) {
		this.stmtAst.add(ast);
	}

	public void addAllAst(ArrayList<Node> allAst) {
		this.stmtAst.addAll(allAst);
	}

	public void addParam(EntityBlock param) {
		this.methodParams.add(param);
	}

	public void addAll(ArrayList<EntityBlock> list) {
		this.methodParams.addAll(list);
	}

	public ArrayList<EntityBlock> getParams() {
		return this.methodParams;
	}
}
